#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<string>
#include<stack>
using namespace std;
int main()
{
	stack<int> st;
	int n;
	scanf("%d", &n);
	if (n < 0)
	{
		printf("fu ");
		n = -n;
	}
	while (n / 10)
	{
		st.push(n % 10);
		n /= 10;
	}
	st.push(n);
	string str[] = { "ling", "yi", "er", "san", "si", "wu", "liu", "qi", "ba", "jiu" };
	int i = n % 10;
	int size = st.size();
	for (int i = 0; i < size - 1; i++)
	{
		cout << str[st.top()] << " ";
		st.pop();
	}
	cout << str[st.top()];
	system("PAUSE");
	return 0;
}